@extends($_frameLayoutView)

@section('pageTitle',$product['title'])
@section('pageKeywords',$product['title'])
@section('pageDescription',$product['title'])

@section('body')

    @include(\TechSoft\Laravel\View\TemplateUtil::view('pc.header'),['mini'=>true])

    <div class="pb-page-background">
        <div class="background">
            <div class="title">产品中心</div>
        </div>
    </div>

    <div class="pb-product-view">
        <div class="pb-container">
            <div class="uk-grid">
                <div class="uk-width-medium-1-2">
                    <div class="cover">
                        <img data-src="{{\TechSoft\Laravel\Assets\AssetsUtil::fix($product['cover'])}}" />
                    </div>
                </div>
                <div class="uk-width-medium-1-2">
                    <div class="title">{{$product['title']}}</div>
                    <div class="info">
                        <div class="line">
                            @if($product['price'])
                                <div class="item">
                                    <span>参考价格：</span> {{sprintf('%.2f',$product['price'])}} 元
                                </div>
                            @endif
                        </div>
                        <div class="line">
                            <a class="uk-button uk-button-main" target="_blank" href="/contact">联系购买</a>
                            @if(\TechSoft\Laravel\Config\ConfigUtil::get('contactQQ'))
                                <a class="uk-button uk-button-main" href="http://wpa.qq.com/msgrd?v=3&uin={{\TechSoft\Laravel\Config\ConfigUtil::get('contactQQ')}}&site=oicqzone.com&menu=yes" target="_blank">联系QQ购买</a>
                            @endif
                        </div>
                    </div>
                </div>
            </div>
            <div class="content html-container">
                {!! \TechSoft\Laravel\Util\HtmlUtil::replaceImageSrcToLazyLoad($product['content'],'data-src',true) !!}
            </div>
        </div>
    </div>

    @include('theme.default.pc.footer')

    @if(\TechSoft\Laravel\Config\ConfigUtil::get('moduleBookEnable',false))
        @include('theme.default.pc.book')
    @endif

@endsection
